Skip to content

Conversation

@ani-malgari
Copy link
Contributor

@ani-malgari ani-malgari commented Oct 30, 2025

Previously, it was designed to only allow 1 application per asset. This PR allows setting multiple applications per asset. The changes include:

  1. ApplicationService.java
  • Modified batchSetApplicationAssets to append applications rather than replace existing ones
  • Added batchUnsetApplicationAssets to remove application for assets.
  1. ApplicationAssociationMapper.java
  • Added mapList() method to return a list of ApplicationAssociation objects
  • Kept the legacy map() method for backward compatibility
  1. SidebarApplicationSection
  • The component now displays all applications associated with an entity
  • Updated removeApplication function to use useBatchUnsetApplicationMutation hook

Adding applications:
https://github.com/user-attachments/assets/3a00e706-f35f-4e56-a4d1-0dab3dd2041c

Removing applications:
https://github.com/user-attachments/assets/406efa6a-5a8a-4b16-a382-888dec4b3015

@github-actions github-actions bot added product PR or Issue related to the DataHub UI/UX devops PR or Issue related to DataHub backend & deployment community-contribution PR or Issue raised by member(s) of DataHub Community labels Oct 30, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Oct 30, 2025
@alwaysmeticulous
Copy link

alwaysmeticulous bot commented Oct 30, 2025

🔴 Meticulous spotted visual differences in 331 of 1134 screens tested: view and approve differences detected.

Meticulous evaluated ~8 hours of user flows against your PR.

Last updated for commit 663211b. This comment will update as new commits are pushed.

@codecov
Copy link

codecov bot commented Oct 30, 2025

Bundle Report

Changes will increase total bundle size by 10.58kB (0.04%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
datahub-react-web-esm 28.63MB 10.58kB (0.04%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: datahub-react-web-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-*.js 10.58kB 19.0MB 0.06%

Files in assets/index-*.js:

  • ./src/app/entityV2/shared/containers/profile/sidebar/Applications/SidebarApplicationSection.tsx → Total Size: 3.52kB

  • ./src/app/domainV2/CreateDomainModal.tsx → Total Size: 6.01kB

  • ./src/app/domain/utils.ts → Total Size: 3.01kB

  • ./src/app/domain/DomainsList.tsx → Total Size: 5.74kB

  • ./src/app/entity/shared/types.ts → Total Size: 153 bytes

  • ./src/app/domain/CreateDomainModal.tsx → Total Size: 6.25kB

@codecov
Copy link

codecov bot commented Oct 30, 2025

@ani-malgari ani-malgari changed the title WIP: Updates to Applications Allow multiple Applications Oct 30, 2025
@ani-malgari ani-malgari changed the title Allow multiple Applications feat: Allow users to add multiple Applications to entities Oct 30, 2025
...entityDomain
}
application {
applications {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, this constitutes a minor, but still real, breaking change. lets make sure we include this in the next version release notes

@datahub-cyborg datahub-cyborg bot added pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed needs-review Label for PRs that need review from a maintainer. labels Oct 30, 2025
@datahub-cyborg datahub-cyborg bot removed the pending-submitter-response Issue/request has been reviewed but requires a response from the submitter label Oct 31, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Oct 31, 2025
Anirudh Reddy Malgari added 2 commits November 5, 2025 16:24
Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! this is great stuff all around. i only have one main comment around making a backwards incompatible change to our graphql api.

shouldn't be a huge change then i think this is probably good to go

Comment on lines 1757 to 1759
The application associated with the dataset
The applications associated with the dataset
"""
application: ApplicationAssociation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this is technically a backwards incompatible change to remove a field from graphql like this. since all of our API changes need to be backwards compatible I think we will need to instead mark this field as deprecated and then create a new applications field like you have here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thing everywhere below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense! i debated because i made the intended UI changes but API needs to be backwards compatible nevertheless

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lmk what you think of the updates now

@datahub-cyborg datahub-cyborg bot added pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed needs-review Label for PRs that need review from a maintainer. labels Nov 6, 2025
: null;
})));
}))
.dataFetcher(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chriscollins3456 - ptal of the resolver changes here to support application. i made updates here instead of making changes to all the mappers to support setApplication.

@datahub-cyborg datahub-cyborg bot added needs-review Label for PRs that need review from a maintainer. and removed pending-submitter-response Issue/request has been reviewed but requires a response from the submitter labels Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PR or Issue raised by member(s) of DataHub Community devops PR or Issue related to DataHub backend & deployment needs-review Label for PRs that need review from a maintainer. product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants